package project4;

public class Main5_10 {

	public static void main(String[] args) {

		int sum = 0;
		for (int i = 100; i <= 1000; i++) {
			if (i % 5 == 0 && i % 6 == 0) {
				System.out.printf("%4d", i);
				sum++;
			}
			if (sum % 10 == 0 && sum > 1) {
				System.out.println("\n");
				sum = 0;
			}
		}

	}
}
